package org.vacoor.nothing.common.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class StreamRedirector implements Runnable {
    private final InputStream in;
    private final OutputStream out;

    public StreamRedirector(InputStream in, OutputStream out) {
        this.in = in;
        this.out = out;
    }

    @Override
    public void run() {
        try {
            IOUtils.flow(in, out, false, false);
        } catch (IOException ignore) {
        }
    }
}